package com.yuanfengPlus.purchase.dao;

import com.yuanfengPlus.purchase.entity.PurchaseReceipt;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IPurchaseReceiptDao {
    //    条件查询
    List<PurchaseReceipt> queryPurchaseReceipt(Map<String, Object> params);

    //    新增采购订单
    int addPurchaseReceipt(PurchaseReceipt purchaseReceipt);

    //    查看单条采购订单
    PurchaseReceipt queryPurchaseReceiptById(String purchase_receipt_id);

    //    修改单条采购订单
    int updatePurchaseReceiptById(PurchaseReceipt purchaseReceipt);

    //    删除单条采购订单
    int deletePurchaseReceipt(@Param("purchase_receipt_id") String purchase_receipt_id);

    //    单条审核通过采购订单
    int updatePurchaseReceiptAgree(@Param("purchase_receipt_id") String purchase_receipt_id);

    //    单条审核拒绝采购订单
    int updatePurchaseReceiptRefuse(@Param("purchase_receipt_id") String purchase_receipt_id);
}
